function submit(){ alert("New Note Submitted Successfully!");}

$(function(){ // Hide delete button if this is an insert rather than a delete
    if(getParameterByName('id') == null) // || getParameterByName('id').length()<=0)
    {
        $('#deleteNoteButton').hide()
    }
});


function removeNote()
{
    var result = confirm("Delete Note?");
    if(result == true)
    {
        executeQuery('rpp','deletenote', 'id='+getParameterByName('id'),
            function(data)
            {
                window.location="Notes.html";
            }
        );
    }
}